# Contributor: Robert Sacks <robert@sacks.email>
# Maintainer: Robert Sacks <robert@sacks.email>
pkgname=py3-freezegun
_pyname=freezegun
pkgver=1.1.0
pkgrel=2
pkgdesc="Let your Python tests travel through time"
url="https://pypi.org/project/freezegun/"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-dateutil py3-six"
makedepends="py3-setuptools"
checkdepends="py3-mock py3-pytest py3-nose"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz
	python3.10-staticmethods.patch"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	rm -f tests/test_uuid.py
	pytest-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
41d2bd18c5115416679602c53aff10891dd8e97402f641eeb3819a3b84d34351c238dece8e68fe267d572693ea08b421510726b6d7c9fdb1d6d70ddc96954d54  freezegun-1.1.0.tar.gz
fcb6a561ace557aa0292fdb8e680042ab35fa21200c5449c142e67f184f165e946d0e4ffcf74ea26bd838103574d07151db6abf68dabaf07bc40c72520937bb4  python3.10-staticmethods.patch
"
